//
//  ListItem.h
//  FlyGift
//
//  Created by lanou3g on 15/7/17.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    top = 0,
    bottom = 1
}itemLocation;


@interface ListItem : UIButton
{
    @public
    NSMutableArray *locateView;
    NSMutableArray *topView;
    NSMutableArray *bottomView;
}

@property(nonatomic, strong)UIView *hitTextLabel;

@property(nonatomic, strong)UIButton *deleBtn;

@property(nonatomic, strong)UIButton *hiddenButton;

@property(nonatomic, assign)itemLocation location;

@property(nonatomic, copy)NSString *itemName;;


// 两个手势
@property(nonatomic, strong)UIPanGestureRecognizer *panGesture;

@property(nonatomic, strong)UILongPressGestureRecognizer *longPressGesture;


// 长按手势 回调方法
@property(nonatomic, copy)void (^longpressBlock)();

// 操作时候的回调方法
@property(nonatomic, copy) void(^operationBlock)(animateType type,NSString *itemName, int index);
@end
